home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 6 / coreaids.zip / GET_DSK.ASM < prev    next >
Assembly Source File  |  1987-06-25  |  679b  |  33 lines

  1. ;    DESC:    returns the disk transfer address                    V1.00
  2. ;    OUT:    *{SEG_VAL} segment and
  3. ;        *{OFFSET} offset of DTA
  4. ;    SAMPLE:    Callm    GET_DSK,,<SEG_VAL,OFFSET>
  5. ;    ################################################################
  6.  
  7.     Extrn    PUSHALL:Near
  8.     Extrn    POPALL:Near
  9.  
  10. GET_DSKC    Segment
  11.     Assume    CS:GET_DSKC
  12.     Public    GET_DSK
  13.  
  14.                         ;notice.
  15.     DB    'GET_DSK  - V1.00, Copyright 1987, CoreTechs   ',0DH,0AH
  16.  
  17. GET_DSK    Proc    Near                ;get the DTA.
  18.  
  19.     Call    PUSHALL                ;save registers.
  20.  
  21.     Mov    AH,2FH                ;get DTA.
  22.     Int    21H
  23.  
  24.     Push    BX                ;return offset and
  25.     Push    ES                ;segmetn of DTA.
  26.  
  27.     Call    POPALL                ;recover registers.
  28.     Ret
  29. GET_DSK    Endp
  30.  
  31. GET_DSKC    Ends
  32.     End
  33.